fs4 0.5.4

Cross-platform file locks and file duplication. Original fs2, now supports async.
Documentation

Extended utilities for working with files and filesystems in Rust.

This is a fork of the fs2-rs crate, the aim for this fork is to support async.

Installation

  • std

    [dependencies]
    fs4 = { version = "0.5", features = ["sync"] }
    
  • tokio runtime

    [dependencies]
    fs4 = { version = "0.5", features = ["tokio-async"] }
    
  • async-std runtime

    [dependencies]
    fs4 = { version = "0.5", features = ["std-async"] }
    
  • smol runtime

    [dependencies]
    fs4 = { version = "0.5", features = ["smol-async"] }
    

Features

License

fs4 is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE, LICENSE-MIT for details.

Copyright (c) 2021 Al Liu.

Copyright (c) 2015 Dan Burkert.